<?php if(!empty($user)){?>
<div class="col-728">
     <form action="" method="post" enctype="multipart/form-data" >
     <h3 class="pageTitle linebtm clearfix">
        <span class="fl"><?php echo $rear?"Infomation":"Thông tin cơ bản";?></span>
     </h3>
     <!--begin table 1 -->
     <div class="clearfix info-us">
        <table cellpadding="8" cellspacing="0" border="0" width="100%" bgcolor="#f3f3f3">
           <tbody>
              <tr>
                 <td width="25%" class="label"><img src="<?php if(!empty($user->image)){echo $user->image;}else{echo base_url(),'skin/images/avta.jpg';}?>"  width="100" height="100" /></td>
                  <td width="75%" class="Conts" style="line-height:100px;">
                    <input type="file" name="file" id="file" /><span style="font-size: 12px;"><?php echo $rear?"(Choose a new avatar, max 1MB, jpg, png, gif)":"(Chọn ảnh đại diện mới, tối đa 1MB, jpg,png,gif)";?></span>
                  </td>
              </tr>
              <tr>
                 <td width="25%" class="label"><?php echo $rear?"Name":"Họ tên";?>:</td>
                 <td width="75%" class="Conts"><input type="text" name="name" value="<?php echo $user->name;?>" /></td>
              </tr>
              <tr>
                 <td class="label"><?php echo $rear?"Gender":"Giới tính";?>:</td>
                 <td class="Conts">
                 <select name="gender">
                    <option value="1"<?php if($user->gender==1){echo 'selected="selected"';}?>><?php echo $rear?"Male":"Nam" ?></option>
                    <option value="0"<?php if($user->gender==0){echo 'selected="selected"';}?>><?php echo $rear?"Female":"Nữ" ?></option>
                 </select>

                 </td>
              </tr>
              <tr>
                 <td class="label"><?php echo $rear?"Birthday":"Ngày sinh";?>:</td>
                 <td class="Conts"><input type="text" value="<?php echo $user->birthday;?>" name="birthday" /></td>
              </tr>
              <tr>
                 <td class="label">Skype:</td>
                 <td class="Conts"><input type="text" name="skype" value="<?php echo $user->skype;?>" /></td>
              </tr>
              <tr>
                 <td class="label"><?php echo $rear?"Language":"Ngôn ngữ";?>:</td>
                 <td class="Conts">Vietnamese</td>
              </tr>
              <tr>
                 <td class="label"><?php echo $rear?"Payment":"Thanh toán";?>:</td>
                 <td class="Conts">
                    <table>
                       <tbody>
                          <tr style="width:100px;">
                             <td>Bank account number:</td>
                             <td><input type="text" name="bank" value="<?php echo $user->skype;?>" /></td>
                          </tr>
                          <tr>
                             <td>Bank:</td>
                             <td><input type="text" name="bank2" value="<?php echo $user->skype;?>" />
                             </td>
                          </tr>
                          <tr>
                             <td>Bank account owner:</td>
                             <td><input type="text" name="bank3" value="<?php echo $user->skype;?>" /></td>
                          </tr>
                       </tbody>
                    </table>
                 </td>
              </tr>
              <tr>
                 <td class="label"><?php echo $rear?"Phone number":"Số điện thoại";?>:</td>
                 <td class="Conts"><input type="text" name="phone" value="<?php echo $user->phone;?>" /></td>
              </tr>
              <tr>
                 <td class="label"><?php echo $rear?"Address":"Địa chỉ";?>:</td>
                 <td class="Conts"><input type="text" value="<?php echo $user->diachi;?>" name="address" /></td>
              </tr>
           </tbody>
        </table>
        
     </div>
     <!-- begin button -->
     <div style="text-align: center;margin-top:10px">
        <input type="submit" value="OK" name="" />
     </div>
     <!-- end button -->
     </form>
</div>
<?php }?>